<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/10/22
  Time: 19:46
  关于团体的主页
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="config.jsp"%>
<html>
<head>
    <title><%=webTitle%></title>
    <meta name="Keywords" content="<%=keywords%>">
    <meta name="Description" content="<%=Description%>">
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <div align="center">
        <%@include file="component/top.jsp"%><!---顶栏-->
        <%@include file="component/checkBox.jsp"%><!--搜索框-->
        <div style="width: 1000px;text-align: left">
            <!--介绍-->
            <div  style="width: 600px;text-align: center;padding: 0">
                <form method='post' action='' >
                    <p align="left" >
                    <table>
                    <tr>
                        <td><p>用户编号：</p></td>
                        <td><input type=text class="box2" id="userId" value=''></td>
                    </tr>
                </table>

                    <input id="tj" type="button" class="bt500x50" name='tj' value='提升提升Au用户到user用户' style="margin-left: 20px;margin-top: 20px">
                    </P>
                </form>
                <form method='post' action='' >
                    <p align="left" >
                        <table>
                            <tr>
                                <td><p>用户编号：</p></td>
                    <td><input type=text class="box2" id="delectUserId" value=''></td>
                    </tr>
                    </table>
                    <input id="tj_delectUser" type="button" class="bt500x50" name='tj' value='移除该用户' style="margin-left: 20px;margin-top: 20px">
                    </P>
                </form>
                <form method='post' action='' >
                    <p align="left" >
                        <table>
                            <tr>
                                <td><p>用户编号：</p></td>
                    <td><input type=text class="box2" id="selectUserId" value=''></td>
                    </tr>
                    </table>
                    <input id="tj_selecteUser" type="button" class="bt500x50" name='tj' value='查询该用户' style="margin-left: 20px;margin-top: 20px">
                    </P>
                </form>
                <script>
                    $("#tj").click(function () {
                        var userid=$("#userId").val();
                        $.post("AuUserServlet",{ userId:userid},function (data) {
                            if(data=="success"){
                                alert("提升成功。");
                                location.reload();
                            }else{
                                alert(data);
                            }
                        });

                    });
                    $("#tj_delectUser").click(function () {
                        var userid=$("#delectUserId").val();
                        $.post("DeleteUserServlet",{ userId:userid},function (data) {
                            if(data=="success"){
                                alert("移除成功。");
                                location.reload();
                            }else{
                                alert(data);
                            }
                        });

                    });
                    $("#tj_selecteUser").click(function () {
                        var userid=$("#selectUserId").val();
                       window.location.href="http://localhost:8080/user.jsp?user="+userid;

                    });
                </script>



        </div>
    </div>
</body>
</html>
